package service

import (
	"study/dao"
	"study/model"
)

var DynastyService dynastyService = dynastyService{}

type dynastyService struct {
}

func (this dynastyService) IsExistByName(name string) bool {
	return dao.DynastyDao.IsExistByName(name)
}

func (this dynastyService) Add(dynasty *model.Dynasty) {
	dao.DynastyDao.Add(dynasty)
}
